ingratiate (oneself) with (someone)

Translations
втираться в доверие к (кому-то)
He tried to ingratiate himself with the boss by working overtime.
Он пытался втереться в доверие к начальнику, работая сверхурочно.